/* -----------------------------------------------------------------------
   See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
   ----------------------------------------------------------------------- */

////#include "ramp_filter.h"
//#include <math.h>
//#include <stdio.h>
//#include <stdlib.h>
//#include <string.h>
//#include "plm_config.h"
//#include "fdk.h"
//#include "fdk_opts_ext.h"
//#include "volume.h"
////#include "C:\\AAAfiles\\Anthony\\ImageView\\ImageView\\imageview.h"
//#include "readmha_ext.h"
//#include "fftw3.h"
//#include "fdk_utils_ext.h"
//#include "MGHMtx_opts.h"
//#include "write_matrix.h"
//#define FLOOD_SCALE 100
//#define isnan(x) ((x) != (x))
//
//#define MARGIN5 5
//#define HalfCenter 65
#ifndef _INC_MATH
#define _INC_MATH
#include "math.h"

#endif


#define MAXINTENSITY 65535


void intensity2att(Proj_image * cbi)
{

	for (int i=0; i<cbi->dim[0]*cbi->dim[1]; i++)
		cbi->img[i]=(float)log(MAXINTENSITY/(cbi->img[i]+1e-3));
}

	